package com.hykc.auth.service;

import com.alibaba.fastjson.JSONObject;
import com.aopuxun.common.auth.entity.UserInfo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public interface AuthService {
    Map<String,Object> login(String telephone, String password, HttpServletResponse response);

    UserInfo verifyUser(HttpServletRequest request, HttpServletResponse response);

    void logout(HttpServletRequest request, HttpServletResponse response);

    Map<String,Object> checkCodeLogin(JSONObject jsonObject, HttpServletResponse response);

    void sendCode(String telephone);

    void resetPassword(String telephone, String checkCode, String password);

    void changePassword(String oldPassword, String newPassword,HttpServletRequest request,HttpServletResponse response);
}
